<h3><%= :comments.l %></h3>

<ul id="comments">
  <% @comments.each do |comment| %>
  <li>
    <div class="comment_meta">
      <%= :comment_meta.localize_with_args(:date => comment.created_at.localize(:short), :author => render_user(comment.user)) %>
      <% if current_user == comment.user %>
      (<%= link_to :delete.l, event_comment_url(@event, comment), :method => :delete, :confirm => :comment_delete_confirmation.l %>)
      <% end %>
    </div>
  <%= simple_format(auto_link(h(comment.content))) %>
  </li>
  <% end %>
</ul>
<% if current_user.manager? or current_user.is_assigned_to? @event %>
<% form_tag event_comments_url(@event), :method => :post , :id => 'comment_form' do%>
  <label for="content"><%= :enter_comment.l %></label>
  <%= text_area_tag 'content' %>
  <%= submit_tag :post_comment.l %>
<% end %>
<% end %>